package com.suncnpap.statistics.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.app.util.database.mybatis.Page;
import com.suncnpap.statistics.service.OverPaidService;
import com.suncnpap.library.model.BorrowBookInfo;
import com.suncnpap.statistics.mapper.OverPaidMapper;
import com.suncnpap.statistics.model.OverPaid;

/** 
 * 说明： 超期罚款Service实现类
 * @version
 */
@Service("overPaidService")
public class OverPaidServiceImpl implements OverPaidService{

	
	@Autowired
	OverPaidMapper overPaidMapper;
	
	@Override
	public void add(OverPaid obj) {
		// TODO Auto-generated method stub
		overPaidMapper.add(obj);
	}

	@Override
	public void update(OverPaid obj) {
		// TODO Auto-generated method stub
		overPaidMapper.edit(obj);
	}

	@Override
	public void deleteById(String strId) {
		// TODO Auto-generated method stub
		overPaidMapper.deleteById(strId);
		
	}
	@Override
	public void deleteMore(String[] strIds) {
		// TODO Auto-generated method stub
		overPaidMapper.deleteMore(strIds);
	}

	@Override
	public Page list(Page page) {
		// TODO Auto-generated method stub
		List<OverPaid> list = overPaidMapper.datalistPage(page);
		page.setDataList(list);
		return page;
	}


	@Override
	public int findCount(Page page) {
		// TODO Auto-generated method stub
		return overPaidMapper.findCount(page);
	}

	@Override
	public OverPaid findById(String strId) {
		// TODO Auto-generated method stub
		return overPaidMapper.findById(strId);
	}
	
	@Override
	public Page listInfo(Page page) {
		// TODO Auto-generated method stub
		List<BorrowBookInfo> list = overPaidMapper.dataInfolistPage(page);
		page.setDataList(list);
		return page;
	}
	
}

